{extend name='layout/base'}
{block name='title'}{__block__}修改头像{/block}
{block name='content'}

<div class="row left">
    <div class="col-md-2"></div>
    <div class="col-md-8">
        <div class="col-md-4">
            {include file='layout/menu'}             
        </div>      
        <div class="col-md-8">

            <div class="page-header">
                <h1>上传头像</h1>
            </div>
            <form class="form-horizontal" action="<?php echo url('index/user.Head/save');?>" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">上传头像</label>
                    <div class="col-xs-2 col-md-2">
                        <a href="#" class="thumbnail">
                            <img src="<?php echo head($userdata['users_id']);?>">
                        </a>
                    </div>
                    <div class="col-sm-10">
                        <input type="file" name="r_head" class="form-control" id="r_head">
                        <span id="r_head_prompt"></span>
                    </div>
                </div>                              
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" name="r_button" value="r_button" class="btn btn-primary">确认修改</button>
                    </div>
                </div>
            </form>
   
        </div>
    </div>
    <div class="col-md-2"></div>
</div>

{/block}
